home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: netcom.com!smryan
- From: smryan@netcom.com (@#$%!?!)
- Subject: Re: Largest effective integer.
- Message-ID: <smryanDpnDDn.418@netcom.com>
- Organization: The Programmer formerly known as S M Ryan
- X-Newsreader: TIN [version 1.2 PL1]
- References: <4ke5gu$o7u@airdmhor.gen.nz>
- Date: Wed, 10 Apr 1996 12:58:35 GMT
- Sender: smryan@netcom3.netcom.com
-
- : What's the highest unsigned value you can safely represent without losing
- : integer accuracy using an ANSI defined type? For example you can get as
- :
- : Basically I want a really big unsigned int and I don't care what format
- : it's in or how slow it is.
-
- Measly little 32 bit integers and reals. I grew up on 60 and 48 bit integers,
- 120 bit doubles. And 65535 bit integers.
-
- In other words, this all machine specfic. Look in <limits.h> if your
- compiler has one. With proper abuse of cpp and opaque types, you can
- make your own abstract integer type which should be fairly portable.
-
- If you really don't care how slow, you can implement it as array
- of bytes and do the arithmetic one byte at a time, propogating carries,
- etc.
- --
- The Queen, amused, in quiet power, | smryan@netcom.com PO Box 1563
- will draw the son to darkenned bower. | Cupertino, California
- Her face is fair, her fragrance rare, | (xxx)xxx-xxxx 95015
- with woven webs for wayward flower. | I don't use no smileys
-